function on(divcounter,n){
  var ev;
  if(ev = window.event){
    mousePos = mouseCoords(ev);
  	document.getElementById(divcounter).className = "ResultInfo_on";
  	document.getElementById(divcounter).style.top = mousePos.y+"px";
  	document.getElementById(divcounter).style.left = mousePos.x+"px";
  }else{
    document.getElementById(divcounter).className = "ResultInfo_on";
    while(n>3){
    	n-=2;
    }
  	document.getElementById(divcounter).style.top = 158+n*90+"px";;
  	document.getElementById(divcounter).style.left = 240+"px";
  }
}
  
function off(divcounter){
  document.getElementById(divcounter).className = "ResultInfo_off";
  }
  
function mouseCoords(ev){
  if(ev.pageX || ev.pageY){
  return {x:ev.pageX, y:ev.pageY};
  }
  return {
    x:ev.clientX + document.body.scrollLeft - document.body.clientLeft,
    y:ev.clientY + document.body.scrollTop  - document.body.clientTop
  };
}
